<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" isELIgnored="false" %>
<style>
    table{
        text-align: center;
        margin: auto;
    }
</style>

<table cellspacing="0" cellpadding="1" rules="all"
       bordercolor="gray" border="1" id="DataGrid1"
       style="BORDER-RIGHT: gray 1px solid; BORDER-TOP: gray 1px solid; BORDER-LEFT: gray 1px solid; WIDTH: 60%; WORD-BREAK: break-all; BORDER-BOTTOM: gray 1px solid; BORDER-COLLAPSE: collapse; BACKGROUND-COLOR: #f5fafe; WORD-WRAP: break-word">
    <tr style="FONT-WEIGHT: bold; FONT-SIZE: 12pt; HEIGHT: 25px; BACKGROUND-COLOR: #afd1f3">

        <td align="center" width="18%">
            序号
        </td>
        <td align="center" width="17%">
            商品图片
        </td>
        <td align="center" width="17%">
            商品名称
        </td>
        <td align="center" width="17%">
            商品数量
        </td>
        <td align="center" width="17%">
            商品价格
        </td>
    </tr>
    <c:forEach items="${requestScope.order.orderitems}" var="orderItem" varStatus="aa">
        <tr  style="FONT-WEIGHT: bold; FONT-SIZE: 12pt; HEIGHT: 25px; BACKGROUND-COLOR: #afd1f3">
            <td>${aa.count}</td>
            <td><img width="40" height="45"
                     src="${pageContext.request.contextPath}/${orderItem.product.image}">
            </td>
            <td>${orderItem.product.name}</td>
            <td>${orderItem.count}</td>
            <td>${orderItem.product.shop_price}</td>
        </tr>
    </c:forEach>
        <tr  style="FONT-WEIGHT: bold; FONT-SIZE: 12pt; HEIGHT: 25px; BACKGROUND-COLOR: #afd1f3;">
            <td></td>
            <td></td>
            <td></td>
            <td>总价${requestScope.order.total}</td>
            <td><a href="/admin/adminFindAllOrder.do?page=0">返回</a></td>
        </tr>
</table>